package seday02;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class WriteStringDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("./src/main/java/seday02/WriteStringDemo.java");
        File file = new File("./src/main/java/seday02/WriteStringDemo.java");
        byte[] date =new byte[(int)file.length()];
        fis.read(date);
        String line = new String(date, StandardCharsets.UTF_8);
        System.out.println(line);
        fis.close();
    }
}
